package com.qingxin.park.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

/**
 * 农残检测仪数据
 * DetectionData entity. 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "detection_data")
public class DetectionData extends com.qingxin.sys.entity.BaseEntity implements
		java.io.Serializable {
	private static final long serialVersionUID = 7449668769611862021L;
	// Fields

	private String id;
	private String detectionItem;//检测项目
	private String sampleName;//样品名称
	private String detectionResult;//结果判定
	private String enterpriseUnid;//企业标识
	private String enterpriseName;//企业名称
	private String detectionDate;//检测日期时间 时间格式yyyy-MM-dd HH:mm:ss
	private String standardValue;//限量值（标准值）
	private String inhibitionRate;//抑制率
	private String concentration;//浓度
	private String detectionUnitName;//检测单位
	private String personUuid;//检测人员ID（登录接口返回）
	private String personName;//检测人员名称（登录接口返回）
	private String deviceSerialNumber;//设备序列号
	private String testStandard;//依据标准
	private String testStatus;//处理状态：0待处理、1已处理
	private String testResult;//处理结果
	private String productCode;//产品编码
	private String companyid;
	private String companyName;
	private String parkid;
	private String parkName;
	private String pdtid;
	private String pdtname;
	private String pdttype;//类型：1种植、2养殖、3加工
	private String typeid;
	private String typename;
	private String cropid;
	private String cropName;
	private Date createTime;

	// Constructors

	/** default constructor */
	public DetectionData() {
	}

	/** full constructor */
	public DetectionData(String detectionItem, String sampleName,
			String detectionResult, String enterpriseUnid,
			String enterpriseName, String detectionDate, String standardValue,
			String inhibitionRate, String concentration,
			String detectionUnitName, String personUuid, String personName,
			String deviceSerialNumber, String testStandard, String testStatus,
			String testResult, String productCode, String companyid,
			String companyName, String parkid, String parkName, String pdtid,
			String pdtname, String pdttype, String typeid, String typename,
			String cropid, String cropName, Date createTime) {
		this.detectionItem = detectionItem;
		this.sampleName = sampleName;
		this.detectionResult = detectionResult;
		this.enterpriseUnid = enterpriseUnid;
		this.enterpriseName = enterpriseName;
		this.detectionDate = detectionDate;
		this.standardValue = standardValue;
		this.inhibitionRate = inhibitionRate;
		this.concentration = concentration;
		this.detectionUnitName = detectionUnitName;
		this.personUuid = personUuid;
		this.personName = personName;
		this.deviceSerialNumber = deviceSerialNumber;
		this.testStandard = testStandard;
		this.testStatus = testStatus;
		this.testResult = testResult;
		this.productCode = productCode;
		this.companyid = companyid;
		this.companyName = companyName;
		this.parkid = parkid;
		this.parkName = parkName;
		this.pdtid = pdtid;
		this.pdtname = pdtname;
		this.pdttype = pdttype;
		this.typeid = typeid;
		this.typename = typename;
		this.cropid = cropid;
		this.cropName = cropName;
		this.createTime = createTime;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "uuid.hex")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "id", unique = true, nullable = false, length = 32)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "detection_item", length = 100)
	public String getDetectionItem() {
		return this.detectionItem;
	}

	public void setDetectionItem(String detectionItem) {
		this.detectionItem = detectionItem;
	}

	@Column(name = "sample_name", length = 100)
	public String getSampleName() {
		return this.sampleName;
	}

	public void setSampleName(String sampleName) {
		this.sampleName = sampleName;
	}

	@Column(name = "detection_result", length = 100)
	public String getDetectionResult() {
		return this.detectionResult;
	}

	public void setDetectionResult(String detectionResult) {
		this.detectionResult = detectionResult;
	}

	@Column(name = "enterprise_unid", length = 100)
	public String getEnterpriseUnid() {
		return this.enterpriseUnid;
	}

	public void setEnterpriseUnid(String enterpriseUnid) {
		this.enterpriseUnid = enterpriseUnid;
	}

	@Column(name = "enterprise_name", length = 100)
	public String getEnterpriseName() {
		return this.enterpriseName;
	}

	public void setEnterpriseName(String enterpriseName) {
		this.enterpriseName = enterpriseName;
	}

	@Column(name = "detection_date", length = 100)
	public String getDetectionDate() {
		return this.detectionDate;
	}

	public void setDetectionDate(String detectionDate) {
		this.detectionDate = detectionDate;
	}

	@Column(name = "standard_value", length = 100)
	public String getStandardValue() {
		return this.standardValue;
	}

	public void setStandardValue(String standardValue) {
		this.standardValue = standardValue;
	}

	@Column(name = "inhibition_rate", length = 100)
	public String getInhibitionRate() {
		return this.inhibitionRate;
	}

	public void setInhibitionRate(String inhibitionRate) {
		this.inhibitionRate = inhibitionRate;
	}

	@Column(name = "concentration", length = 100)
	public String getConcentration() {
		return this.concentration;
	}

	public void setConcentration(String concentration) {
		this.concentration = concentration;
	}

	@Column(name = "detection_unit_name", length = 100)
	public String getDetectionUnitName() {
		return this.detectionUnitName;
	}

	public void setDetectionUnitName(String detectionUnitName) {
		this.detectionUnitName = detectionUnitName;
	}

	@Column(name = "person_uuid", length = 100)
	public String getPersonUuid() {
		return this.personUuid;
	}

	public void setPersonUuid(String personUuid) {
		this.personUuid = personUuid;
	}

	@Column(name = "person_name", length = 100)
	public String getPersonName() {
		return this.personName;
	}

	public void setPersonName(String personName) {
		this.personName = personName;
	}

	@Column(name = "device_serial_number", length = 100)
	public String getDeviceSerialNumber() {
		return this.deviceSerialNumber;
	}

	public void setDeviceSerialNumber(String deviceSerialNumber) {
		this.deviceSerialNumber = deviceSerialNumber;
	}

	@Column(name = "test_standard", length = 100)
	public String getTestStandard() {
		return this.testStandard;
	}

	public void setTestStandard(String testStandard) {
		this.testStandard = testStandard;
	}

	@Column(name = "test_status", length = 1)
	public String getTestStatus() {
		return this.testStatus;
	}

	public void setTestStatus(String testStatus) {
		this.testStatus = testStatus;
	}

	@Column(name = "test_result", length = 100)
	public String getTestResult() {
		return this.testResult;
	}

	public void setTestResult(String testResult) {
		this.testResult = testResult;
	}

	@Column(name = "productCode", length = 20)
	public String getProductCode() {
		return this.productCode;
	}

	public void setProductCode(String productCode) {
		this.productCode = productCode;
	}

	@Column(name = "companyid", length = 32)
	public String getCompanyid() {
		return this.companyid;
	}

	public void setCompanyid(String companyid) {
		this.companyid = companyid;
	}

	@Column(name = "company_name", length = 100)
	public String getCompanyName() {
		return this.companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	@Column(name = "parkid", length = 32)
	public String getParkid() {
		return this.parkid;
	}

	public void setParkid(String parkid) {
		this.parkid = parkid;
	}

	@Column(name = "park_name", length = 100)
	public String getParkName() {
		return this.parkName;
	}

	public void setParkName(String parkName) {
		this.parkName = parkName;
	}

	@Column(name = "pdtid", length = 32)
	public String getPdtid() {
		return this.pdtid;
	}

	public void setPdtid(String pdtid) {
		this.pdtid = pdtid;
	}

	@Column(name = "pdtname", length = 100)
	public String getPdtname() {
		return this.pdtname;
	}

	public void setPdtname(String pdtname) {
		this.pdtname = pdtname;
	}

	@Column(name = "pdttype", length = 1)
	public String getPdttype() {
		return this.pdttype;
	}

	public void setPdttype(String pdttype) {
		this.pdttype = pdttype;
	}

	@Column(name = "typeid", length = 32)
	public String getTypeid() {
		return this.typeid;
	}

	public void setTypeid(String typeid) {
		this.typeid = typeid;
	}

	@Column(name = "typename", length = 50)
	public String getTypename() {
		return this.typename;
	}

	public void setTypename(String typename) {
		this.typename = typename;
	}

	@Column(name = "cropid", length = 32)
	public String getCropid() {
		return this.cropid;
	}

	public void setCropid(String cropid) {
		this.cropid = cropid;
	}

	@Column(name = "crop_name", length = 50)
	public String getCropName() {
		return this.cropName;
	}

	public void setCropName(String cropName) {
		this.cropName = cropName;
	}

	@Column(name = "create_time", length = 23)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

}